home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ‚àû
-
- ‚àû
-
- åPurpose
-
-
-
- The big trend these days in Macintosh software is toward more
-
- integration between applications. Increasingly, developers achieve this
-
- integration by using the Apple event interfaces of other applications, and
-
- by defining their own suites of Apple events for other applications to use.
-
-
-
- Because there are far more clients than servers in the world of Apple
-
- events, there is a large number of applications which are
-
- high-level-event-aware, using Apple events to control other applications
-
- (or just to be modern), but not offering any interface of their own. Apart
-
- from the Required suite mandated by Finder, the functionality of these
-
- applications is beyond the reach of scripting utilities and other programs
-
- that send Apple events. Menu Events is a utility which opens up this
-
- demi-monde of dabblers and dilettantes to the glories of Apple event
-
- controllability.
-
-
- If you regard an application’s collective user interface in terms of a set
-
- of available functions, then take subsets according to how the user can
-
- access these functions (Command-key combination, button click, menus,
-
- and so on), you will usually find that the subset for menus is largest. This
-
- is because menus are intended as a baseline for the user interface;
-
- however else you can do something, you should be able to do it with menus
-
- as well. Often a function is not available in a certain mode, but a menu
-
- selection will shift the application into that mode, then another will access
-
- the function. This conformity is an asset of the Macintosh operating
-
- system which can be exploited to offer a fairly general means of
-
- controlling other applications.
-
-
-
-
-
- ⌃
-
- ⌃
-
- åWho Can Use Menu Events?
-
-
-
- You do not need AppleScript, or any other optional software package, for
-
- Menu Events to work. It only requires System 7.
-
-
-
- However, it has no user interface of its own. It only enables programs to
-
- do something they would not otherwise be able to do, namely, invoke
-
- another application’s menu commands.
-
-
- Any program you write, or any application which lets you compose and
-
- send Apple events (such as a general scripting utility, or Maybe, part of
-
- AWOL Utilities), can send a Menu event to any suitably modern application
-
- and hope for a response. Whether or not a particular application
-
- cooperates depends on how it was programmed, but any application
-
- programmed according to the published instructions of Apple Computer
-
- will cooperate, with a bit of coaxing.
-
- See the section entitled “Limitations” for more information.
-
-
- If you have AppleScript, you should place the “Menu Events Scripting
-
- Addition” file in your “Scripting Additions” folder. This will allow you
-
- to use Menu events in your scripts. “Menu Events Sample Script” shows
-
- the sort of thing you can do with the scripting addition file installed.
-
-
-
-